package com.hhkj.admin.invoice.service.base;

import com.hhkj.admin.invoice.domain.Invoice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhkj.admin.invoice.model.dopo.InvoiceDo;
import com.hhkj.admin.invoice.model.dopo.InvoicePo;
import com.ruoyi.common.base.biz.service.base.BaseService;

/**
* @author admin
* @description 针对表【s_invoice(记录订单每次开票信息)】的数据库操作Service
* @createDate 2023-10-27 11:33:29
*/
public interface InvoiceService extends BaseService<Invoice, InvoiceDo, InvoicePo> {

    /**
     * 该订单是否已经申请过有效的发票（作废过不算），或者正在申请中
     * @param orderId 订单id
     * @return
     */
    boolean hasApplied(Long orderId);

}
